<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>币情分析报告</title>
</head>

<!-- <script src="http://cdn.hcharts.cn/highcharts/highcharts.js"></script> -->
<script src="https://img.hcharts.cn/highstock/highstock.js"></script>
<script src="https://img.hcharts.cn/highcharts/highcharts-more.js"></script>
<script src="https://img.hcharts.cn/jquery/jquery-1.8.3.min.js"></script>
<script src="https://img.hcharts.cn/highcharts-plugins/highcharts-zh_CN.js"></script>
<script src="https://img.hcharts.cn/highcharts/modules/exporting.js"></script>

<body class="yahei">
<div id="wraper">
    <div id="titleView" class="white_b">
        <div>
            <img id="titleImg" width="100%" src="https://199store.oss-cn-hangzhou.aliyuncs.com/465430f1368a465f81244c05f62b7fb2.jpg"
                 alt="titleImg">
            <div id="title" class="p_l_10 p_r_10 font_18">%s</div>
        </div>
        <div id="author" class="p_l_10 p_r_10">%s</div>
    </div>

    <h2 class="center p_t_10 p_b_10 font_22 theme_color">币的基本面介绍</h2>

    <div id="baseInfoView" class="white_b">
        <div id="baseTop" class="gradient p_10 white font_14">
            <div>
                <img id="logo" src="" alt="">
                <span id="name">%s</span>

                <div>
                    <span id="priceCny">%s</span>
                    <span id="priceChangeFirst">%s</span>
                </div>

                <span id="priceUsd">%s</span>
                <span id="priceBtc">%s</span>
            </div>

            <br>

            <div>
                <div>
                    <span>24小时最高</span>
                    <span id="high24">%s</span>
                </div>

                <div>
                    <span>24小时最低</span>
                    <span id="lowest24">%s</span>
                </div>
            </div>
        </div>
        <div id="baseMid" class="p_10">
            <div id="coinText" class="p_b_10 font_14">%s</div>

            <table border="1">
                <tr>
                    <td>
                        <div>英文名:</div>
                        <div id="enName">%s</div>
                    </td>
                    <td>
                        <div>中文文名:</div>
                        <div id="zhName">%s</div>
                    </td>
                    <td>
                        <div>上架交易所:</div>
                        <div id="trader">%s</div>
                    </td>
                </tr>
                <tr>
                    <td>
                        <div>白皮书：</div>
                        <a id="whitePaper" href="%s">白皮书地址</a>
                    </td>
                    <td>
                        <div>网站：</div>
                        <a id="webSite" href="%s">网站地址</a>
                    </td>
                    <td>
                        <div>区块站：</div>
                        <a id="blockSite" href="%s">区块站地址</a>
                    </td>
                </tr>
            </table>
        </div>

        <!--<div id="baseBot" class="p_10">-->
            <!--<div id="value" class="">-->
                <!--<div id="valueLeft">-->
                    <!--<p>流通市值</p>-->
                    <!--<div>-->
                        <!--<span id="valueCny">%s</span>-->
                        <!--<span id="rank" class="theme_bg_color white">%s</span>-->
                    <!--</div>-->
                    <!--<span id="valueUsd">%s</span>-->
                    <!--<span id="valueBtc">%s</span>-->
                <!--</div>-->
                <!--<div id="valuePieView" style="width: 80%"></div>-->
            <!--</div>-->

            <!--<div id="volume" class="">-->
                <!--<div id="volumeLeft">-->
                    <!--<p>流通量</p>-->
                    <!--<span id="volumeNum">%s</span>-->
                    <!--<p>总发行量</p>-->
                    <!--<p id="publicNum">%s</p>-->
                <!--</div>-->
                <!--<div id="volumePieView" style="width:80%"></div>-->
            <!--</div>-->

            <!--<div id="tradeMent" class="">-->
                <!--<div id="tradeLeft">-->
                    <!--<p>24h成交额</p>-->
                    <!--<div>-->
                        <!--<span id="tradeCny">%s</span>-->
                        <!--<span id="tradeRank">%s</span>-->
                    <!--</div>-->
                    <!--<p id="tradeUsd">%s</p>-->
                    <!--<p id="tradeBtc">%s</p>-->
                <!--</div>-->
                <!--<div id="tradePieView" style="width:80%"></div>-->
            <!--</div>-->
        <!--</div>-->
    </div>

    <h2 class="center p_t_10 p_b_10 font_22 theme_color">币的涨跌预测</h2>

    <div id="priceChange" class="white_b p_b_10 center">
        <div id="valuelevel">
            <br>
            <div id="levels">
                <span class="flag" v-bind:style="levelStyle1">强烈推荐</span>
                <span class="flag" v-bind:style="levelStyle2">推荐</span>
                <span class="flag" v-bind:style="levelStyle3">一般推荐</span>
                <span class="flag" v-bind:style="levelStyle4">推荐</span>
                <span class="flag" v-bind:style="levelStyle5">强烈推荐</span>
            </div>
            <br>
            <div id="progress">
                <div id="progress_bar"></div>
            </div>
            <br>
            <br>
            <div id="ideal">
                <span id="sell" class="p_l_10">售卖</span>
                <span id="buy" class="p_r_10">购买</span>
            </div>
            <br>
        </div>

        <div id="reportInfo" class="center">%s</div>
        <div id="levelInfo" class="center">%s</div>
    </div>

    <h2 class="center p_t_10 p_b_10 font_22 theme_color">币的六纬分析</h2>

    <div id="sixIndex" class="white_b">
        <div id="sixTop" class="box center p_t_10 p_b_10 white">
            <div class="w_30 border_r font_26">
                <p class="p_b_10">综合</p>
                <p id="totalNum">%s</p>
            </div>
            <div class="w_30 center border_r font_26">
                <p class="p_b_10">排名</p>
                <div>
                    <span id="rankNum">%s</span>
                    <span id="rankChange" style="display: none;">%s</span>
                </div>
            </div>
            <div class="w_30 center font_26">
                <p class="p_b_10">击败率</p>
                <p id="beatNum">%s</p>
            </div>
        </div>
        <div id="sixMid" class="center p_b_10">
            <div id="radarView" style="width: 90%; height: 400px; margin: 0 auto"></div>
        </div>

        <ul class="p_l_10 p_r_10">
            <li id="totalInfo">%s</li>
            <li id="rankInfo">%s</li>
            <li id="beatInfo">%s</li>
        </ul>

        <h3 class="p_l_10 p_r_10 p_t_10 theme_color font_16">六维指数主要变化情况如下：</h3>

        <div id="indexChangeTemplete" style="display: none">
            <li class="indexCell font_14">
                <p class="result"></p>
                <p class="reason"></p>
            </li>
        </div>

        <ul id="indexChangeView" class="p_l_10 p_r_10 p_b_10">
        </ul>
    </div>

    <h2 class="center p_t_10 p_b_10 font_22 theme_color">币的当日价格趋势</h2>

    <div id="trend" class="white_b center">
        <div id="trendView" style="width: 100%;height:400px"></div>
    </div>

    <h2 class="center p_t_10 p_b_10 font_22 theme_color">币的当日舆情推送</h2>

    <div id="newsTemplete" style="display: none">
        <div class="newsCell p_10">
            <div class="">
                <img id="newsImg" width="100%" src="%s" alt="">
            </div>
            <div class="">
                <a id="newsTitle" class="font_14" href="%s">%s</a>
                <span class="newsAdvantage">利好</span>
                <span class="newsDisadvantage">利空</span>
                <p id="newsContent" class="newContent">%s</p>
                <div class="box p_t_10">
                    <div>
                        <img src="https://199store.oss-cn-hangzhou.aliyuncs.com/961e26e8af0d4787816c1e78c358fdb0.png" alt="">
                        <span>利好：</span>
                        <span id="optiNum"></span>
                    </div>
                    <div>
                        <img src="https://199store.oss-cn-hangzhou.aliyuncs.com/6efb5c6eede54cd2bbd92ea659d0ad14.png" alt="">
                        <span>利空：</span>
                        <span id="pessiNum"></span>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="newsView" class="white_b">
    </div>

    <br>

    <div id="qrCode" class="center">
        <img width="30%" src="https://199store.oss-cn-hangzhou.aliyuncs.com/a6c18ed1acb5400eb721b143443e2778.jpg" alt="">
    </div>
</div>

<script>
var chartData=%s1;
var valueContent=%s3;
var volumeContent=%s5;
var tradeContent=%s7;

var levelData=%s8;

var radarData=%s9;

var sixIndexChangeData=%s2;
var newsData=%s4;

var radarCateData=%s6;

    function drawRadar() {
        Highcharts.chart('radarView', {
            chart: {
                polar: true,
                type: 'line'
            },
            title: {
                text: '',
                x: -80
            },
            pane: {
                size: '80%'
            },
            xAxis: {
                categories: radarCateData,
                tickmarkPlacement: 'on',
                lineWidth: 0
            },
            yAxis: {
                gridLineInterpolation: 'polygon',
                lineWidth: 0,
                min: 0
            },
            tooltip: {

            },
            legend: {},
            credits: {
                text: '',
                href: ''
            },
            exporting: {
                enabled: false
            },
            series: [{
                name: '代币六维分析',
                data: radarData,
                pointPlacement: 'on'
            }]
        });
    }

    function drawValuePie() {
        var arr = [];
        var arr1 = [];
        arr1.push('');
        arr1.push(parseFloat(valueContent) * 100);

        var arr2 = [];
        arr2.push('');
        arr2.push(100 - parseFloat(valueContent) * 100);

        arr.push(arr1, arr2);

        Highcharts.chart('valuePieView', {
            title: {
                text: parseFloat(valueContent).toFixed(2) * 100 + '%' + '市值占比',
                align: 'center',
                verticalAlign: 'middle',
                y: 0
            },
            tooltip: {},
            plotOptions: {
                pie: {
                    dataLabels: {
                        enabled: true,
                        distance: -50,
                        style: {
                            fontWeight: 'bold',
                            color: 'white',
                            textShadow: '0px 1px 2px black'
                        }
                    },
                    startAngle: -90,
                    endAngle: 90,
                    center: ['50%', '50%']
                }
            },
            colors:['#00a8a3','#0099CC'],
            credits: {
                text: '',
                href: ''
            },
            exporting: {
                enabled: false
            },
            series: [{
                type: 'pie',
                name: '',
                innerSize: '75%',
                data: arr
            }]
        });
    }

    function drawVolumePie() {
        var arr = [];
        var arr1 = [];
        arr1.push('');
        arr1.push(parseFloat(volumeContent) * 100);

        var arr2 = [];
        arr2.push('');
        arr2.push(100 - parseFloat(volumeContent) * 100);

        arr.push(arr1, arr2);

        Highcharts.chart('volumePieView', {
            title: {
                text: parseFloat(volumeContent).toFixed(2) * 100 + '%' + '流通率',
                align: 'center',
                verticalAlign: 'middle',
                y: 0
            },
            tooltip: {

            },
            plotOptions: {
                pie: {
                    dataLabels: {
                        enabled: true,
                        distance: -50,
                        style: {
                            fontWeight: 'bold',
                            color: 'white',
                            textShadow: '0px 1px 2px black'
                        }
                    },
                    startAngle: -90,
                    endAngle: 90,
                    center: ['50%', '50%']
                }
            },
            colors:['#00a8a3','#0099CC'],
            credits: {
                text: '',
                href: ''
            },
            exporting: {
                enabled: false
            },
            series: [{
                type: 'pie',
                name: '',
                innerSize: '75%',
                data: arr
            }]
        });
    }

    function drawTradePie() {
        var arr = [];
        var arr1 = [];
        arr1.push('');
        arr1.push(parseFloat(tradeContent) * 100);

        var arr2 = [];
        arr2.push('');
        arr2.push(100 - parseFloat(tradeContent) * 100);

        arr.push(arr1, arr2);

        Highcharts.chart('tradePieView', {
            title: {
                text: parseFloat(tradeContent).toFixed(2) * 100 + '%' + '换手率',
                align: 'center',
                verticalAlign: 'middle',
                y: 0
            },
            tooltip: {

            },
            plotOptions: {
                pie: {
                    dataLabels: {
                        enabled: true,
                        distance: -50,
                        style: {
                            fontWeight: 'bold',
                            color: 'white',
                            textShadow: '0px 1px 2px black'
                        }
                    },
                    startAngle: -90,
                    endAngle: 90,
                    center: ['50%', '50%']
                }
            },
            colors:['#00a8a3','#0099CC'],
            credits: {
                text: '',
                href: ''
            },
            exporting: {
                enabled: false
            },
            series: [{
                type: 'pie',
                name: '',
                innerSize: '75%',
                data: arr
            }]
        });
    }

    function drawLine() {
        if (chartData == "" || chartData == null) {
            return;
        }
        Highcharts.each(chartData, function (d) {
            d.length = 2;
        });
        Highcharts.stockChart('trendView', {
            rangeSelector: {
                selected: 2
            },
            title: {},
            plotOptions: {
                series: {
                    showInLegend: true
                }
            },
            tooltip: {
                split: false,
                shared: true
            },
            credits: {
                text: '',
                href: ''
            },
            exporting: {
                enabled: false
            },
            series: [{
                id: '000001',
                data: chartData
            }]
        });
    }

    function newsInfo() {
        for (var index = 0; index < newsData.length; index++) {
            (function (index_i) {
                var element = newsData[index_i];

                var newsImg;
                if (element.newsImg == null || $.trim(element.newsImg) == '') {
                    newsImg = '';
                } else {
                    newsImg = element.newsImg;
                }

                var newsTitle;
                if (element.newsTitle == null || $.trim(element.newsTitle) == '') {
                    newsTitle = '';
                } else {
                    newsTitle = element.newsTitle;
                }

                var newsHref;
                if (element.newsHref == null || $.trim(element.newsHref) == '') {
                    newsHref = '';
                } else {
                    newsHref = element.newsHref;
                }

                var newsContent;
                if (element.newsContent == null || $.trim(element.newsContent) == '') {
                    newsContent = '';
                } else {
                    newsContent = element.newsContent;
                }

                var optiNum;
                if (element.optiNum == null || $.trim(element.optiNum) == '') {
                    optiNum = '';
                } else {
                    optiNum = element.optiNum;
                }

                var pessiNum;
                if (element.pessiNum == null || $.trim(element.pessiNum) == '') {
                    pessiNum = '';
                } else {
                    pessiNum = element.pessiNum;
                }

                var cell = $("#newsTemplete .newsCell").clone().appendTo($("#newsView"));
                cell.find("#newsImg").attr("src", newsImg);
                cell.find("#newsTitle").attr("href", newsHref);
                cell.find("#newsTitle").text(newsTitle);
                cell.find("#newsContent").text(newsContent);

                cell.find("#optiNum").text(optiNum);
                cell.find("#pessiNum").text(pessiNum);

                if (parseInt(optiNum) < parseInt(pessiNum)) {
                    cell.find(".newsAdvantage").css("display", "none");
                } else if (parseInt(optiNum) > parseInt(pessiNum)) {
                    cell.find(".newsDisadvantage").css("display", "none");
                } else {
                    cell.find(".newsAdvantage").css("display", "none");
                    cell.find(".newsDisadvantage").css("display", "none");
                }
            })(index);
        }
    }

    function indexInfo() {
        for (var index = 0; index < sixIndexChangeData.length; index++) {
            (function (index_i) {
                var element = sixIndexChangeData[index_i];

                var indexName;
                if (element.indexName == null || $.trim(element.indexName) == '') {
                    indexName = '';
                } else {
                    indexName = element.indexName;
                }

                var indexNum;
                if (element.indexNum == null || $.trim(element.indexNum) == '') {
                    indexNum = '';
                } else {
                    indexNum = element.indexNum;
                }

                var yesterdayNum;
                if (element.yesterdayNum == null || $.trim(element.yesterdayNum) == '') {
                    yesterdayNum = '';
                } else {
                    yesterdayNum = element.yesterdayNum;
                }

                var change;
                if (element.change == null || $.trim(element.change) == '') {
                    change = '';
                } else {
                    change = element.change;
                }

                var reason;
                if (element.reason == null || $.trim(element.reason) == '') {
                    reason = '';
                } else {
                    reason = element.reason;
                }

                var resultStr;
                var reasonStr;
                if (parseInt(change) > 0) {
                    resultStr = indexName + ":" + indexNum + "(相对于昨日指数：" + yesterdayNum + "," + "上升" + change +
                        ")";
                    reasonStr = "最主要的变动因素是：" + reason;
                } else if (parseInt(change) < 0) {
                    resultStr = indexName + ":" + indexNum + "(相对于昨日指数：" + yesterdayNum + "," + "下降" + change +
                        ")";
                    reasonStr = "最主要的变动因素是：" + reason;
                } else {
                    resultStr = indexName + ":" + indexNum;
                    reasonStr = '';
                }

                var cell = $("#indexChangeTemplete .indexCell").clone().appendTo($("#indexChangeView"));
                cell.find($('.result')).text(resultStr);
                cell.find($('.reason')).text(reasonStr);
            })(index);
        }
    }

    function recommandLevel() {
        switch (levelData) {
            case 1:
                $("#progress_bar").css("margin-left", "0%");
                break;

            case 2:
                $("#progress_bar").css("margin-left", "20%");
                break;

            case 3:
                $("#progress_bar").css("margin-left", "40%");
                break;

            case 4:
                $("#progress_bar").css("margin-left", "60%");
                break;

            case 5:
                $("#progress_bar").css("margin-left", "80%");
                break;

            default:
                break;
        }
    }

    drawLine();
    drawRadar();

    indexInfo();

    newsInfo();

    recommandLevel();
</script>
</body>

<style>
    #wraper {
        margin: 0 auto;
        padding-left: 10px;
        padding-right: 10px;
        background-color: rgb(217, 224, 224);
    }

    #titleView {
        margin: 0 auto;
        width: 100%;
    }

    #priceChange {
        margin: 0 auto;
        width: 100%;
    }

    #trend {
        margin: 0 auto;
        width: 100%;
    }

    #qrCode {
        margin: 0 auto;
        width: 100%;
    }
</style>

<style>
    /* baseInfoView */

    #baseInfoView {
        margin: 0 auto;
    }

    table {
        width: 100%;
        border: 1px solid rgb(217, 224, 224);
    }

    tr {
        height: 30px;
    }

    td {
        width: 33%;
        padding-left: 5px;
        padding-top: 5px;
    }

    span {
        font-size: 20px;
    }

    #crowdPriceChange {
        background-color: rgb(29, 188, 112);
        color: white;
        border-radius: 3px;
        padding: 3px;
    }

    #name {
        font-size: 20px;
    }

    #priceChangeFirst {
        background-color: rgb(29, 188, 112);
        color: white;
        border-radius: 3px;
        padding: 3px;
    }

    #rank {
        border-radius: 3px;
        padding: 3px;
    }

    #valueLeft {
        float: left;
        width: 20%;
    }

    #valuePieView {
        margin-left: 20%;
    }

    #valuePieView .highcharts-container {
        height: 200px !important;
    }

    #volumeLeft {
        float: left;
        width: 20%;
    }

    #volumePieView {
        margin-left: 20%;
    }

    #volumePieView .highcharts-container {
        height: 200px !important;
    }

    #tradeLeft {
        float: left;
        width: 20%;
    }

    #tradePieView {
        margin-left: 20%;
    }

    #tradePieView .highcharts-container {
        height: 200px !important;
    }
</style>

<style>
    .flag {
        display: inline-block;
        width: 18%;
        text-align: center;
        font-size: 14px;
        color: #666666;
    }

    #buy {
        float: right;
        color: #00BD6E;
        font-size: 18px;
    }

    #sell {
        float: left;
        color: #F3471E;
        font-size: 18px;
    }

    #progress {
        height: 10px;
        width: 100%;
        margin-bottom: 10px;
        float: left;
        overflow: hidden;
        background-color: #f5f5f5;
        border-radius: 4px;
    }

    #progress_bar {
        width: 20%;
        height: 100%;
        margin-left: -50%;
        font-size: 12px;
        line-height: 20px;
        color: #fff;
        text-align: center;
        background-color: #00BD6E;
        border-radius: 4px;
        -moz-transition: width .6s ease;
        -o-transition: width .6s ease;
        -webkit-transition: width .6s ease;
    }
</style>

<style>
    #sixIndex {
        margin: 0 auto;
        width: 100%;
    }

    #sixTop {
        background-color: rgb(137, 143, 155);
    }

    #rankChange {
        background-color: rgb(29, 188, 112);
        color: white;
        padding: 3px;
        border-radius: 3px;
    }
</style>

<style>
    #newsView {
        margin: 0 auto;
        width: 100%;
    }

    .newsAdvantage {
        background-color: red;
        color: white;
        padding: 3px;
        border-radius: 3px;
    }

    .newsDisadvantage {
        background-color: rgb(29, 188, 112);
        color: white;
        padding: 3px;
        border-radius: 3px;
    }
</style>

<style>
    /* commment style */

    .yahei {
        font-family: "Microsoft YaHei", 微软雅黑, "MicrosoftJhengHei", 华文细黑, STHeiti, MingLiu;
        font-size: 12px;
        line-height: 150%;
    }

    .box {
        display: -webkit-box;
    }

    .font_14 {
        font-size: 14px;
    }

    .font_16 {
        font-size: 16px;
    }

    .font_18 {
        font-size: 18px;
    }

    .font_20 {
        font-size: 20px;
    }

    .font_22 {
        font-size: 22px;
    }

    .font_26 {
        font-size: 26px;
    }

    .theme_color {
        color: rgb(20, 154, 150);
    }

    .white {
        color: white;
    }

    .white_b {
        background-color: white;
    }

    .theme_bg_color {
        background-color: #339cb8;
    }

    .gradient {
        background: -webkit-gradient(linear, 0 0, right 0, from(#339cb8), to(#3dc8b6));
    }

    .center {
        text-align: center;
    }

    .w_30 {
        width: 33%;
    }

    .w_20 {
        width: 20%;
    }

    .w_80 {
        width: 80%;
    }

    .p_t_10 {
        padding-top: 10px;
    }

    .p_b_10 {
        padding-bottom: 10px;
    }

    .p_l_10 {
        padding-left: 10px;
    }

    .p_r_10 {
        padding-right: 10px;
    }

    .p_10 {
        padding: 10px;
    }

    .border_r {
        border-right: 1px solid white;
    }
</style>

<style>
    html,
    body,
    div,
    span,
    applet,
    object,
    iframe,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    blockquote,
    pre,
    a,
    abbr,
    acronym,
    address,
    big,
    cite,
    code,
    del,
    dfn,
    em,
    img,
    ins,
    kbd,
    q,
    s,
    samp,
    small,
    strike,
    strong,
    sub,
    sup,
    tt,
    var,
    b,
    u,
    i,
    center,
    dl,
    dt,
    dd,
    ol,
    ul,
    li,
    fieldset,
    form,
    label,
    legend,
    caption,
    article,
    aside,
    canvas,
    details,
    embed,
    figure,
    figcaption,
    footer,
    header,
    hgroup,
    menu,
    nav,
    output,
    ruby,
    section,
    summary,
    time,
    mark,
    audio,
    video {
        margin: 0;
        padding: 0;
        border: 0;
        font-size: 100%;
        font: inherit;
        vertical-align: baseline;
    }

    /* HTML5 display-role reset for older browsers */

    article,
    aside,
    details,
    figcaption,
    figure,
    footer,
    header,
    hgroup,
    menu,
    nav,
    section {
        display: block;
    }

    body {
        line-height: 1;
    }

    ol,
    ul {
        list-style: none;
    }

    blockquote,
    q {
        quotes: none;
    }

    blockquote:before,
    blockquote:after,
    q:before,
    q:after {
        content: '';
        content: none;
    }

    table {
        border-collapse: collapse;
        border-spacing: 0;
    }

    a {
        text-decoration: none;
    }
</style>

</html>